home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
Oral Ecstasy
/
Oral Ecstasy (Over 1000 Hi-Res Color Photos).ISO
/
autorun
/
unit1.~pa
< prev
next >
Wrap
Text File
|
1996-02-01
|
911b
|
52 lines
unit Unit1;
interface
uses
SysUtils, WinTypes, WinProcs, Messages, Classes, Graphics, Controls,
Forms, Dialogs, ExtCtrls;
type
TForm1 = class(TForm)
Timer1: TTimer;
procedure Timer1Timer(Sender: TObject);
procedure FormCreate(Sender: TObject);
private
{ Private declarations }
public
{ Public declarations }
end;
var
Form1: TForm1;
implementation
{$R *.DFM}
procedure TForm1.Timer1Timer(Sender: TObject);
begin
close;
end;
procedure TForm1.FormCreate(Sender: TObject);
var
ch:Integer;
dire:String;
cmd:array[0..255] of Char;
begin
ch:=67;
dire:=chr(ch)+':\';
While FileSearch('reff.txt',dire)='' do
Begin
ch:=ch+1;
if Chr(ch)='Z' then Halt;
dire:=chr(ch)+':\';
End;
STRPCopy(Cmd,dire+'autorun\java');
winExec(Cmd,SW_ShowMaximized);
end;
end.